package com.hjt.gulimall.product.feign;

import com.hjt.common.to.ware.SkuHasStockTo;
import com.hjt.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 调用仓储服务的接口
 * @author:97007
 * @date:2021/9/19 22:33
 */
@FeignClient(value = "gulimall-ware")
public interface WareFeignService {

    // 查询sku是否有库存
    @PostMapping("/ware/waresku/hastStock")
    R getSkuHasStock(@RequestBody List<Long> skuIdList);
}
